package com.huanke.iot.base.dao.wb;

import com.huanke.iot.base.dao.BaseMapper;
import com.huanke.iot.base.po.wb.MaintenanceOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MaintenanceOrderMapper extends BaseMapper<MaintenanceOrder> {

    List<MaintenanceOrder> selectOrderList(@Param("customerUserId") Integer customerUserId, @Param("orderStatus") Integer orderStatus);

    List<MaintenanceOrder> selectOrderList1(@Param("customerUserId") Integer customerUserId, @Param("orderStatus") Integer orderStatus);

    List<MaintenanceOrder> selectOrderList2(@Param("customerUserId") Integer customerUserId, @Param("orderStatus") Integer orderStatus);

    List<MaintenanceOrder> selectOrderList3(@Param("customerUserId") Integer customerUserId, @Param("orderStatus") Integer orderStatus);

    void feedback(@Param("orderId") Integer orderId, @Param("feedback") Integer feedback);

    MaintenanceOrder getDetailById(@Param("orderId") Integer orderId);

    void evaluation(@Param("orderId") Integer orderId, @Param("star") Integer star, @Param("evaluation")String  evaluation);

    List<MaintenanceOrder> selectWbOrderList(@Param("customerUserId") Integer customerUserId, @Param("orderStatus") Integer orderStatus);
    List<MaintenanceOrder> selectWbOrderList1(@Param("customerUserId") Integer customerUserId, @Param("orderStatus") Integer orderStatus);
    List<MaintenanceOrder> selectWbOrderList2(@Param("customerUserId") Integer customerUserId, @Param("orderStatus") Integer orderStatus);
    List<MaintenanceOrder> selectWbOrderList3(@Param("customerUserId") Integer customerUserId, @Param("orderStatus") Integer orderStatus);
    List<MaintenanceOrder> selectWbOrderList4(@Param("customerUserId") Integer customerUserId, @Param("orderStatus") Integer orderStatus);

    void updateResultPhoto(@Param("orderId") Integer orderId, @Param("resultPhoto") String resultPhoto);

    void neglectOrder(@Param("orderId") Integer orderId);

    void distribute(@Param("orderId") Integer orderId, @Param("wbUserId") Integer wbUserId);

    List<MaintenanceOrder> selectManageOrderList(@Param("orderStatus") Integer orderStatus);
    List<MaintenanceOrder> selectManageOrderList1(@Param("orderStatus") Integer orderStatus);
    List<MaintenanceOrder> selectManageOrderList2(@Param("orderStatus") Integer orderStatus);
    List<MaintenanceOrder> selectManageOrderList3(@Param("orderStatus") Integer orderStatus);
    List<MaintenanceOrder> selectManageOrderList4(@Param("orderStatus") Integer orderStatus);
    List<MaintenanceOrder> selectManageOrderList5(@Param("orderStatus") Integer orderStatus);
    List<MaintenanceOrder> selectManageOrderList6(@Param("orderStatus") Integer orderStatus);

    void finish(@Param("orderId") Integer orderId, @Param("wbStatus")Integer wbStatus);

    List<Integer> selectDeviceIdListByWbUserId(@Param("wbUserId")Integer wbUserId);
}
